package trading.algo.BullToBearTask;

import java.util.TimerTask;

import trading.bo.IBAccessorBO;
import trading.util.Constants;

public class VIXFuturePriceTask extends TimerTask {

	private IBAccessorBO ibAccessorBO;
	private String expiration;
	
	public VIXFuturePriceTask(IBAccessorBO ibAccessorBO, String expiration) {
		this.ibAccessorBO = ibAccessorBO;
		this.expiration = expiration;
	}
	
	@Override
	public void run() {
		this.ibAccessorBO.reqCurrentFuturePrice(Constants.VIX, expiration);
	}

}
